home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / YICN23.ZIP / INCLUDE / FACTOR.H < prev    next >
C/C++ Source or Header  |  1993-02-27  |  941b  |  33 lines

  1. #ifndef FACTOR.H
  2.  
  3. #define FACTOR.H
  4.  
  5. #include "actor.h"
  6.  
  7.  
  8. #define MAX_FACTORS 10
  9.  
  10. typedef animicon directionTable[10];
  11.  
  12. class factor : public animactor //facing-actor
  13. {
  14. public:
  15.   enum direction {special, southwest, south, southeast, west, center, east,
  16.           northwest, north, northeast};
  17.   enum type {eightFace, twoFace, oneFace, fourFace};
  18.   animiconNode * directionIcons[10];
  19.   byte direction;
  20.   factor() {direction = 5;};
  21.   virtual void advance();
  22.   void turn(byte idirection);
  23.   virtual void spawn(animactor * spawnactor);
  24.   void assignIcon(int icon_number, type mode, char identity = 255);
  25.   static directionTable * ficonTable;
  26.   static void loadFactor(int position, char * special, char * sw, char * s,
  27.             char * se, char * w, char * center, char * e,
  28.             char * nw, char * n, char * ne, yakLib * myYakLib = NULL,
  29.             icon::flagType flags = icon::normal);
  30.   static void clearFactor(int position);
  31. };
  32.  
  33. #endif